package com.bluedot.bank.dao.customer;

import com.bluedot.bank.dao.HibernateDaoSupport;
import com.bluedot.bank.dao.Pagination;


public class CustomerDaoImpl extends HibernateDaoSupport<Customer, String> implements CustomerDao {

	public CustomerDaoImpl(){
		this.entityClass=Customer.class;
	}
	@Override
	public void browse(Pagination<Customer> pagination) {
		CustomerConditons f=(CustomerConditons)pagination.getConditon();
		if(f!=null)
		{
			this.getSession().enableFilter(f.getFilterName()).setParameter(f.getKey(), f.getO());
		}
		super.browse(pagination);
	}

}
